package cn.xiaopengstack.config;

import lombok.Data;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.BooleanUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author jiangyangang
 */
@ConfigurationProperties(prefix = "spring.ai.agent.auto-config")
@Data
public class AiAgentAutoConfigProperties {
    private Boolean enable;
    private List<String> clientIds;

    public boolean isEnable() {
        return BooleanUtils.isTrue(enable) && CollectionUtils.isNotEmpty(clientIds);
    }
}
